const goodList = document.querySelector(".goods-list");
function init(){
	for(let i = 0; i < goods.length; i++ ){
	console.log(goods);
		goodList.innerHTML += `
			<div class="goods-item">
			  <img src="${goods[i].pic}" alt="" class="goods-pic" />
			  <div class="goods-info">
			    <h2 class="goods-title">${goods[i].title}</h2>
			    <p class="goods-desc">
						${goods[i].desc}
			    </p>
			    <p class="goods-sell">
			      <span>月售 ${goods[i].sellNumber}</span>
			      <span>好评率${goods[i].favorRate}%</span>
			    </p>
			    <div class="goods-confirm">
			      <p class="goods-price">
			        <span class="goods-price-unit">￥</span>
			        <span>${goods[i].price}</span>
			      </p>
			      <div class="goods-btns">
			        <i class="iconfont i-jianhao"></i>
			        <span>0</span>
			        <i class="iconfont i-jiajianzujianjiahao"></i>
			      </div>
			    </div>
			  </div>
			</div>
		`
	}
}
init()

